import React, { Component } from 'react'

export default function HocRemoveProp (WrappedComponent) {
    
    return class WrappingComPonent extends Component {

        render() {
            const { user, ...otherProps } = this.props

            return < WrappedComponent {...otherProps} />
        }
    }
}